package cn.iocoder.an.module.business.controller.admin.storemanage.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - 出入库管理 Response VO")
@Data
@ExcelIgnoreUnannotated
public class StoreManageRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "29068")
    private Long id;

    @Schema(description = "客户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "31319")
    @ExcelProperty("客户账号")
    private String customerAccount;

    @Schema(description = "日期")
    @ExcelProperty("日期")
    private LocalDate operDate;

    @Schema(description = "图号")
    @ExcelProperty("图号")
    private String drawingNumber;

    @Schema(description = "品名", example = "张三")
    @ExcelProperty("品名")
    private String productName;

    @Schema(description = "入库数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("入库数量")
    private Integer inAmount;

    @Schema(description = "出库数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("出库数量")
    private Integer outAmount;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    //当前库存
    private Integer currentAmount;

    //初始数量
    private Integer initAmount;

}